package com.gg.controller;

import cn.hutool.core.util.IdUtil;
import com.gg.pojo.ResultData;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: YDYX
 * @Date: 2022/1/11 - 01 - 11 - 11:58
 * @Description: com.gg.controller
 * @version: 1.0
 */

@RestController
@RefreshScope
public class TestController {
    @GetMapping("getUser/{id}")
    public ResultData getUser(@PathVariable("id") Integer id){
        return new ResultData(222,"查询id为***" + id +"*****" + IdUtil.simpleUUID(),id);
    }

//    @Value("${user.username}")
//    private String UserName;
//
//    @GetMapping("/user/info")
//    public String getConfigInfo() {
//        return UserName;
//    }



}
